package common.web;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceUnit;

/**
 *
 * @author shousuke
 */
public abstract class GenericSessionController extends GenericController {

    @PersistenceUnit(unitName = "Default")
    private EntityManagerFactory emf = null;

    public EntityManager getEntityManager() {
        return emf.createEntityManager();
    }

    public boolean isSessionController() {
        return true;
    }
}
